package com.ygk.bluepath.core.Presenter;

import com.ygk.bluepath.core.BPresenter;
import com.ygk.bluepath.core.View.RecorderActivity;
import com.ygk.bluepath.core.View.RecorderView;

import org.json.JSONObject;

/**
 * Created by Handreace on 2016/7/11.
 */
public class ReCorderPresenter extends BPresenter {

    private RecorderView recorderView;
   // private RecorderModel recorderModel;




    public ReCorderPresenter(RecorderActivity activity, RecorderView mView) {
        super(activity, mView);
        this.recorderView = mView;
      //  this.recorderModel = new RecorderModel(this);
      //  setModel(recorderModel);
    }


    @Override
    public void LBSResult(double longitude, double latitude) {
        super.LBSResult(longitude, latitude);
        recorderView.setLatitude(latitude);
        recorderView.setLongitude(longitude);
    }


    @Override
    public void dealJsonObject(JSONObject result, String oid, Object extraStr) {
        super.dealJsonObject(result, oid, extraStr);
    }


    public void showRecords() {
        recorderView.showRecords();
    }
}
